package com.star.mall.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 密码修改对象
 * @author StarQ
 * @since 2021-05-29
 */
@Data
@EqualsAndHashCode
@ApiModel(value = "Param", description = "分页查询参数")
public class PasswordParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

    @ApiModelProperty(value = "重复密码")
    @NotBlank(message = "重复密码不能为空")
    private String repeatPassword;

}
